<%@ page contentType="text/html;utf-8" language="java" pageEncoding="utf-8" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="../resource/css/common.css" rel="stylesheet" type="text/css" />
	<link href="../resource/css/login.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/resource/js/jquery-1.4.2.js" ></script>
	<title>管理登录</title>
</head>
<body>
<form id="login" method="post" action="j_acegi_security_check">
<div class="login">
<p id="errorInfo"></p>
	<div class="innerborder">
		<h1 style="display:inline-block;">管理登录</h1><span style="color:red;">请使用有足够权限的账户登录</span>
		<p>
			帐号：
			<input name="j_username" type="text" class="text" />
		</p>
		<p>
			密码：
			<input name="j_password" type="password" class="text" />
		</p>

		<p>
			<input type="submit" value="登录">
			&nbsp;&nbsp;&nbsp;&nbsp;
			<button type="reset">重填</button>
		</p>
	</div>
</div>

</form>
<script language="JavaScript" type="text/javascript">
function QueryString()
{
var name,value,i;
var str=location.href;
var num=str.indexOf("?")
str=str.substr(num+1);
var arrtmp=str.split("&");
for(i=0;i < arrtmp.length;i++){
num=arrtmp[i].indexOf("=");
if(num>0){
name=arrtmp[i].substring(0,num);
value=arrtmp[i].substr(num+1);
this[name]=value;
}
}
}
//--------------------------------------
//调用:
var Request=new QueryString();
var ID=Request["error"]
if(1==ID){
$('#errorInfo').append('用户名或密码错误');
}
</script>
</body>
</html>
